Encoding definition files

<#622#>#tex2html_accent_inline1844#<#622#> Some aspects of the contents of font definition files are still under development. Therefore, the current versions of the files |OT1enc.def| and |T1enc.def| are temporary versions and should not be used as models for producing further such files. For further information you should read the documentation in |ltoutenc.dtx|. The declarations in the encoding definition file are responsible for declaring the encoding and telling LATEX<#623#><#623#> how to produce characters in this encoding. The |;SPMlt;ENC;SPMgt;enc.def| files should contain only commands from this section. As with the font definition file commands, it is also possible (although normally not necessary) to use these declarations directly within a class or package file. <#624#>decl<#624#> || The |;SPMlt;ENC;SPMgt;enc.def| file should announce itself with a |command, described in #tex2html_accent_inline1845#. For example: <#628#>tex2html_preform<#628#>verbatim64# <#630#>decl<#630#> | | <#631#>encoding<#631#> <#632#>text-settings<#632#> <#633#>math-settings<#633#> Declares a new encoding scheme <#635#>encoding<#635#>. The <#636#>text-settings<#636#> are declarations which are executed every time || changes the encoding to be <#637#>encoding<#637#>. The <#638#>math-settings<#638#> are similar but are for math alphabets. They are executed whenever a math alphabet with this encoding is called. Spaces within the arguments are ignored to avoid surplus spaces in the document. If a real space is necessary use | |. Example: <#639#>tex2html_preform<#639#>verbatim65# Some author commands need to change their definition depending on which encoding is currently in use. For example, in the |OT1| encoding, the letter `Æ' is in slot |;SPMquot;1D|, whereas in the |T1| encoding it is in slot |;SPMquot;C6|. So the definition of |Æ| has to change depending on whether the current encoding is |OT1| or |T1|. The following commands allow this to happen. <#641#>decl<#641#> || <#642#>cmd<#642#> <#643#>encoding<#643#> <#644#>num<#644#> <#645#>default<#645#> <#646#>definition<#646#> This command is like | |, except that it defines a command which is specific to one encoding. For example, the definition of || in the |OT1| encoding is: <#648#>tex2html_preform<#648#>verbatim66#|| takes the same optional arguments as | |. The resulting command is robust, even if the code in <#650#>definition<#650#> is fragile. It does not produce an error if the command has already been defined but logs the redefinition in the transcript file. <#651#>decl<#651#>[1994/12/01] || <#652#>cmd<#652#> <#653#>encoding<#653#> <#654#>num<#654#> <#655#>default<#655#> <#656#>definition<#656#> This command is the same as ||, except that if <#658#>cmd<#658#> is already defined in encoding <#659#>encoding<#659#>, then the definition is ignored. <#660#>decl<#660#> || <#661#>cmd<#661#> <#662#>encoding<#662#> <#663#>slot<#663#> This command defines a text symbol with slot <#665#>slot<#665#> in the encoding. For example, the definition of |ß| in the |OT1| encoding is: <#666#>tex2html_preform<#666#>verbatim67#It does not produce an error if the command has already been defined but logs the redefinition in the transcript file. <#668#>decl<#668#> || <#669#>cmd<#669#> <#670#>encoding<#670#> <#671#>slot<#671#> This command declares a text accent, with the accent taken from slot <#673#>slot<#673#> in the encoding. For example, the definition of ||̈ in the |OT1| encoding is: <#674#>tex2html_preform<#674#>verbatim68#It does not produce an error if the command has already been defined but logs the redefinition in the transcript file. <#676#>decl<#676#> || <#677#>cmd<#677#> <#678#>encoding<#678#> <#679#>letter<#679#> <#680#>slot<#680#> This command declares that the composite letter formed from applying <#682#>cmd<#682#> to <#683#>letter<#683#> is defined to be simply slot <#684#>slot<#684#> in the encoding. The <#685#>letter<#685#> should be a single letter (such as |a|) or a single command (such as |ı|). For example, the definition of |á| in the |T1| encoding could be declared like this: <#687#>tex2html_preform<#687#>verbatim69# The <#689#>cmd<#689#> should have been previously declared with ||, or as a one-argument ||. <#690#>decl<#690#>[1994/12/01] || <#691#>cmd<#691#> <#692#>encoding<#692#> <#693#>letter<#693#> <#694#>definition<#694#> This is a more general form of ||, which allows for an arbitrary <#696#>definition<#696#>, not just a <#697#>slot<#697#>. The main use for this is to allow accents on |i| to act like accents on |ı|, for example: <#698#>tex2html_preform<#698#>verbatim70#It has the same restrictions as ||.